SLB.using(SLB)

nameable = GameComponent()
nameable.name = "Default"

alien = GameComponent()

player = GameObject()
player:AddComponent(nameable).name = "Jeppe"

player2 = GameObject()
player2:AddComponent(nameable).name = "Alien"
player2:AddComponent(alien)



system = System()
system:AddComponent(nameable)

function system:Update(dt) 
	
	for i=0, self:Count() do

		g = self:GetObject(i)

		g:Debug(g:GetComponent(nameable).name)

	end

end

function Update(dt) 

	system:Update(dt)

end











